#include "ff.h"
#include "cmd.h"
#include <stdio.h>

void MemoryDump(void *p, int size)
{
	int i = 0;
	char *pChar = (char *)p;

	for (i = 0; i < size; i++) {
		printf("%02x ", pChar[i]);
		if (i % 16 == 15)
			printf("\n");
	}

	printf("\n");
}

int main(void)
{
	FATFS fatfs;

	if (f_mount(&fatfs, "0:", 0) != FR_OK) {
		fprintf(stderr, "mount fail");
		return 1;
	}

	cmd_loop();

	f_mount(0, "", 0);

	return 0;
}

